//
//  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//

#import "TestModel.h"

NS_ASSUME_NONNULL_BEGIN

NSUInteger NSUIntegerMaxValue(void)
{
    return NSUIntegerMax;
}

@implementation TestModel

- (instancetype)init
{
    self = [super init];

    if (!self) {
        return self;
    }

    return self;
}

- (nullable instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (!self) {
        return nil;
    }

    return self;
}

// --- CODE GENERATION MARKER

// This snippet is generated by /Scripts/sds_codegen/sds_generate.py. Do not manually edit it, instead run `sds_codegen.sh`.

// clang-format off

- (instancetype)initWithGrdbId:(int64_t)grdbId
                      uniqueId:(NSString *)uniqueId
                       dateValue:(nullable NSDate *)dateValue
                     doubleValue:(double)doubleValue
                      floatValue:(float)floatValue
                      int64Value:(int64_t)int64Value
                  nsIntegerValue:(NSInteger)nsIntegerValue
         nsNumberValueUsingInt64:(nullable NSNumber *)nsNumberValueUsingInt64
        nsNumberValueUsingUInt64:(nullable NSNumber *)nsNumberValueUsingUInt64
                 nsuIntegerValue:(NSUInteger)nsuIntegerValue
                     uint64Value:(uint64_t)uint64Value
{
    self = [super initWithGrdbId:grdbId
                        uniqueId:uniqueId];

    if (!self) {
        return self;
    }

    _dateValue = dateValue;
    _doubleValue = doubleValue;
    _floatValue = floatValue;
    _int64Value = int64Value;
    _nsIntegerValue = nsIntegerValue;
    _nsNumberValueUsingInt64 = nsNumberValueUsingInt64;
    _nsNumberValueUsingUInt64 = nsNumberValueUsingUInt64;
    _nsuIntegerValue = nsuIntegerValue;
    _uint64Value = uint64Value;

    return self;
}

// clang-format on

// --- CODE GENERATION MARKER

@end

NS_ASSUME_NONNULL_END
